package com.mes.biz.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mes.common.core.domain.BaseEntity;
import com.mes.common.utils.log.annotation.FieldRemark;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * 收款单对象 biz_payment
 * @author hwg
 * @email hwg
 * @date 2023-04-30
 */
@Data
public class BizPayment extends BaseEntity<BizPayment>
{
    private static final long serialVersionUID = 1L;

    @FieldRemark(name = "单据编号",field = "payCode")
    private String payCode;

    @FieldRemark(name = "对账单编号",field = "accountCode")
    private String accountCode;

    @FieldRemark(name = "客户",field = "customerId")
    private String customerId;

    @FieldRemark(name = "客户",field = "customerName")
    private String customerName;

    @FieldRemark(name = "付款金额",field = "payAmount")
    private BigDecimal payAmount;

    @FieldRemark(name = "付款账户",field = "payAccount")
    private String payAccount;

    @JsonFormat(pattern = "yyyy-MM-dd")
    @FieldRemark(name = "付款日期",field = "payDate")
    private String payDate;

    @FieldRemark(name = "租户id",field = "status")
    private String tenantId;

    private boolean flag = true;

    private List<BizCustomerPayableDetail> payableDetails;

    private List<BizPaymentDetail> paymentDetailList;

    private List<BizPaymentBill> paymentBillList;
    /**
     * 抹零金额
     */
    private BigDecimal zeroAmount;
    private String status;
}
